import axios from 'axios';

// 获取代签收奶桶信息
const getBucket = id => axios.get(`/df/v1/checkBucketForMachining/${id}`).then(res => res.data)

// 签收或拒签
const postConfirmBucket = form => axios.post(`/df/v1/confirmBucket`, form).then(res => res.data)

// 获取加工厂现有奶桶信息
const get = id => axios.get(`/machining/v1/get/${id}`).then(res => res.data);

// 添加消毒操作
const postAddBucketOperate = form => axios.post('/machining/v1/milk/operate', form).then(res => res.data);

// 添加灌装操作
const postAddBucketPack = form => axios.post('/machining/v1/milk/pack', form).then(res => res.data);

// 发送到销售点
const postSentProcess = form => axios.post('/machining/v1/sentSale', form).then(res => res.data);
export {
    getBucket,
    postConfirmBucket,
    get,
    postAddBucketOperate,
    postAddBucketPack,
    postSentProcess,
}
